﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Proje
{
    class Route
    {
        public int number { get; set; }
        public string date { get; set; }
        public string bus { get; set; }
        public string start { get { return stopPoints[0].name; } }
        public string end { get { return stopPoints[stopPoints.Count - 1].name; } }
        public List<StopPoint> stopPoints;

        public Route()
        {
            stopPoints = new List<StopPoint>();
        }


    }
}
